const mongoose = require('mongoose')
const db = require('../../model/user_admin_db')


const userListSchema = new mongoose.Schema({
    name: { type: String, required: true },
    age: { type: String, required: true },
    gender: { type: Number, required: true },
    edu: { type: Number, required: true },
    hobbies: { type: Number, required: true },
    avatar: { type: String, required: true },
    date: { type: Date, required: true, default: Date.now },
})

const userListModel = db.model('user_lists', userListSchema)


module.exports = {
    userListModel
}